/*
 * @Description: 
 * @Autor: duyu
 * @Date: 2020年12月16日 16:38:33
 * @LastEditors: duyu
 * @LastEditTime: 2020-12-25 17:05:13
 */

import React from 'react';

import './index.css';
import { Table } from 'antd';

const MusicList = (props) => {


    let musicList = props.musicList;

    let musicColumns = [
        {
          title: '歌曲名',
          dataIndex: 'name',
          key: 'name',
        },
        {
          title: 'artist',
          dataIndex: 'artist',
          key: 'artist',
        },
      ];

    return (
        <Table
            columns={musicColumns}
            dataSource={musicList}
            pagination={false}
        />
    );
}

export default MusicList;